# Uncomment this line to define a global platform for your project
# platform :ios, '6.0'

branch = ENV['sha']

target 'CocoaPodsExample' do
  use_frameworks!
  pod 'Realm', git: 'git@github.com:realm/realm-cocoa.git', branch: branch, submodules: true
  pod 'RealmSwift', git: 'git@github.com:realm/realm-cocoa.git', branch: branch, submodules: true
end

target 'CocoaPodsExampleTests' do
  use_frameworks!
  pod 'Realm', git: 'git@github.com:realm/realm-cocoa.git', branch: branch, submodules: true
  pod 'RealmSwift', git: 'git@github.com:realm/realm-cocoa.git', branch: branch, submodules: true
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '3.0'
    end
  end
end
